﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Interfaces;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 学历附件表
/// 用于支持学历的多文件附件，如学历证书、成绩单等
/// </summary>
[MiddleTable]
public class SysPersonEducationFile : BasePoco, IFileBase
{
    [Required]
    [Display(Name = "学历经历ID", Description = "关联的学历经历ID", GroupName = "关联信息")]
    public Guid? PersonEducationId { get; set; }

    [Display(Name = "学历经历", Description = "关联的学历经历对象", GroupName = "关联信息")]
    public SysPersonEducation PersonEducation { get; set; }

    // ISubFile 接口定义的字段
    [Display(Name = "文件ID", Description = "文件唯一标识", GroupName = "文件信息")]
    public Guid? FileId { get; set; }

    [Display(Name = "文件", Description = "文件对象", GroupName = "文件信息")]
    public FileAttachment File { get; set; }

    [Display(Name = "排序", Description = "附件显示顺序", GroupName = "文件信息")]
    public int Order { get; set; }
}